package com.itdachang.design.structural.flyweight;

/**
 * @author gcq
 * @Create 2022-02-13
 */
public class MainTest {
    public static void main(String[] args) {
        // 1、我
        AbstractWaitressFlyweight waitress = ZuDao.getWaitress("");
        waitress.service();
        System.out.println(waitress);

        // 2、佟老师
        AbstractWaitressFlyweight waitress2 = ZuDao.getWaitress("");
        waitress2.service();
        System.out.println(waitress2);
        waitress2.end();

        // 3、卢本伟
        AbstractWaitressFlyweight waitress3 = ZuDao.getWaitress("");
        waitress3.service();
        System.out.println(waitress3);
    }
}